package dao.sqlmap;

import java.sql.SQLException;

import model.Address;

import com.ibatis.dao.client.DaoManager;
import com.ibatis.dao.client.template.SqlMapDaoTemplate;

import dao.AddressDAO;
import dao.DAOHelper;
import dao.DetailDAO;
import dao.NewDAO;

public class DetailSQLMapDao extends SqlMapDaoTemplate implements DetailDAO{
	private static final String SELECT_ADDRESS = "selectAddress";


	public DetailSQLMapDao(DaoManager dm) {
		super(dm);
	}
	
	@Override
	public Address detailAddress(int id) throws SQLException {
	   return (Address)queryForObject(SELECT_ADDRESS, id);
	}

	
}
